
#ifndef TELNET_H
#define TELNET_H

#include <QtNetwork/QTcpSocket>
#include <QDebug>

class Telnet : public QObject
{
	Q_OBJECT
	
	public:
		Telnet(QString hostName, quint16 port, QObject* parent = 0);
		void debugPrintMes();
		qint64 writeData(char* data);
		QVector<QString> getResponse();
	
	public slots:
		void readData();
	
	private:
		QTcpSocket* s;
		QVector<QString> messages;
};

#endif
